import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/stock_out_child_data_entity.dart';
import 'package:library_base/entities/stock_out_order_detail_child_entity.dart';
import 'package:library_base/entities/stock_out_order_detail_entity.dart';

StockOutOrderDetailEntity $StockOutOrderDetailEntityFromJson(Map<String, dynamic> json) {
  final StockOutOrderDetailEntity loginBeanEntity = StockOutOrderDetailEntity();

  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    loginBeanEntity.id = id;
  }

  final List<StockOutOrderDetailChildEntity> details = jsonConvert.convertList<StockOutOrderDetailChildEntity>(json['details']);
  loginBeanEntity.details = details;

  // final StockOutChildDataEntity? data = StockOutChildDataEntity.fromJson(json['data']);
  // if (data != null) {
  //   loginBeanEntity.data = data;
  // }

  return loginBeanEntity;
}

Map<String, dynamic> $StockOutOrderDetailEntityToJson(StockOutOrderDetailEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['details'] = entity.details;
  data['id'] = entity.id;
  // data['data'] = entity.data;
  return data;
}
